package com.yneusoft.manage.model.param;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;

/**
 * 新增/修改部门 参数类
 */
@Data
public class SaveDepartmentParam {


    /**
     * 部门aid
     */
    private Integer aid;

    /**
     * 部门名称
     */
    @Length(min = 1,max = 16,message = "部门名称最长是16位")
    private String  name;

    /**
     * 父部门aid
     */
    private Integer fatherAid;

    /**
     * 部门状态id
     */
    private Integer id;

    /**
     * 部门编号
     */
    @Length(min = 14,max = 14,message = "部门编码长度大于14位")
    private String departmentCode;


    /**
     * 状态名称
     */
    private String stateName;
}
